<?php /* Smarty version 2.6.19, created on 2010-10-26 16:13:27
         compiled from web_pcontent.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'cutstr', 'web_pcontent.html', 47, false),array('modifier', 'showpic', 'web_pcontent.html', 53, false),array('modifier', 'number_format', 'web_pcontent.html', 65, false),array('modifier', 'urlpro', 'web_pcontent.html', 163, false),array('modifier', 'getcolorw', 'web_pcontent.html', 166, false),)), $this); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $this->_tpl_vars['gs']['companyname']; ?>
--万利达书城</title>
<link href="skins/stlye/globle.css" rel="stylesheet" type="text/css" />
<link href="skins/stlye/link.css" rel="stylesheet" type="text/css" />
<link href="skins/stlye/footer.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery-1.4.1.js"></script>
<script type="text/javascript" src="js/jquery.autocomplete.js"></script>
<link rel="stylesheet" type="text/css" href="js/jquery.autocomplete.css" />
<script type="text/javascript" src="js/main.js"></script>
<script type="text/javascript">


function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
</script>
</head>

<body ><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "top_inc.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'web_daohang.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<table width="1004" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-top:3px; " >
  <tr>
    
    
    <td width="223"  align="left" valign="top" ><table width="100%" border="0" cellspacing="0" cellpadding="0" >
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:solid 1px #CCC;">
        <tr>
          <td height="29" valign="bottom" background="skins/stlye/images/bbj_04.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="12">&nbsp;</td>
              <td width="90" align="center" style="font-size:14px;"><strong>推荐榜</strong></td>
              <td align="right"><a href="book_content.php">更多.</a>.</td>
              <td width="5">&nbsp;</td>
            </tr>
          </table></td>
        </tr>
        <tr>
          <td colspan="8" style=" padding-top:5px; padding-bottom:5px" ><?php $_from = $this->_tpl_vars['tj1']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['rs']):
?><?php if ($this->_tpl_vars['rs']['index'] < 2): ?>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
             <td width="89%" valign="middle" style=" padding-left:5px; font-weight:bold"><img src="skins/stlye/images/0<?php echo $this->_tpl_vars['rs']['index']+1; ?>
.jpg" align="absmiddle" /><a href="book_show.php?id=<?php echo $this->_tpl_vars['rs']['id']; ?>
" target="_blank">&nbsp;<?php echo ((is_array($_tmp=$this->_tpl_vars['rs']['topicname'])) ? $this->_run_mod_handler('cutstr', true, $_tmp, 13) : smarty_modifier_cutstr($_tmp, 13)); ?>
</a>
               
             </tr>
            <tr>
              <td ><table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="35%" align="center"  style="padding:5px 0;"><img src="<?php echo ((is_array($_tmp=$this->_tpl_vars['rs']['pic'])) ? $this->_run_mod_handler('showpic', true, $_tmp) : smarty_modifier_showpic($_tmp)); ?>
" width="58" height="80" style="border:solid 1px #CCC; padding:2px;" /></td>
    <td width="65%" align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td style="">名称：<?php echo ((is_array($_tmp=$this->_tpl_vars['rs']['topicname'])) ? $this->_run_mod_handler('cutstr', true, $_tmp, 13) : smarty_modifier_cutstr($_tmp, 13)); ?>
</td>
      </tr>
       <tr>
        <td>作者：<?php echo ((is_array($_tmp=$this->_tpl_vars['rs']['a1'])) ? $this->_run_mod_handler('cutstr', true, $_tmp, 13) : smarty_modifier_cutstr($_tmp, 13)); ?>
</td>
      </tr>
      <tr>
        <td>出版社：<?php echo ((is_array($_tmp=$this->_tpl_vars['rs']['a2'])) ? $this->_run_mod_handler('cutstr', true, $_tmp, 13) : smarty_modifier_cutstr($_tmp, 13)); ?>
</td>
      </tr>
      <tr>
        <td>价格：<span style="color:#C60"><?php echo ((is_array($_tmp=$this->_tpl_vars['rs']['price_m'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : number_format($_tmp, 2)); ?>
 </span> Z币</td>
      </tr>
     
    </table></td>
    </tr>
</table></td>
              </tr>
          </table><?php else: ?><table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="89%" style=" padding-left:5px;"><img src="skins/stlye/images/0<?php echo $this->_tpl_vars['rs']['index']+1; ?>
.jpg" /><a href="book_show.php?id=<?php echo $this->_tpl_vars['rs']['id']; ?>
" target="_blank">&nbsp;<?php echo ((is_array($_tmp=$this->_tpl_vars['rs']['topicname'])) ? $this->_run_mod_handler('cutstr', true, $_tmp, 13) : smarty_modifier_cutstr($_tmp, 13)); ?>
</a></td>
  </tr>
</table><?php endif; ?><?php endforeach; endif; unset($_from); ?></td>
        </tr>
    </table></td>
      </tr>
      <tr>
        <td height="3"></td>
      </tr>
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:solid 1px #CCC;">
        <tr>
          <td height="29" valign="bottom" background="skins/stlye/images/bbj_04.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="12">&nbsp;</td>
              <td width="90" align="center" style="font-size:14px;"><strong>人气榜</strong></td>
              <td align="right"><a href="book_content.php">更多</a></td>
              <td width="5">&nbsp;</td>
            </tr>
          </table></td>
        </tr>
        <tr>
          <td colspan="8" style=" padding-top:5px; padding-bottom:5px" ><?php $_from = $this->_tpl_vars['tj2']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['rs']):
?><?php if ($this->_tpl_vars['rs']['index'] < 2): ?>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
             <td width="89%" valign="middle" style=" padding-left:5px; font-weight:bold"><img src="skins/stlye/images/0<?php echo $this->_tpl_vars['rs']['index']+1; ?>
.jpg" align="absmiddle" /><a href="book_show.php?id=<?php echo $this->_tpl_vars['rs']['id']; ?>
" target="_blank">&nbsp;<?php echo ((is_array($_tmp=$this->_tpl_vars['rs']['topicname'])) ? $this->_run_mod_handler('cutstr', true, $_tmp, 13) : smarty_modifier_cutstr($_tmp, 13)); ?>
</a>
               
             </tr>
            <tr>
              <td ><table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="35%" align="center"  style="padding:5px 0;"><img src="<?php echo ((is_array($_tmp=$this->_tpl_vars['rs']['pic'])) ? $this->_run_mod_handler('showpic', true, $_tmp) : smarty_modifier_showpic($_tmp)); ?>
" width="58" height="80" style="border:solid 1px #CCC; padding:2px;" /></td>
    <td width="65%" align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td style="">名称：<?php echo ((is_array($_tmp=$this->_tpl_vars['rs']['topicname'])) ? $this->_run_mod_handler('cutstr', true, $_tmp, 13) : smarty_modifier_cutstr($_tmp, 13)); ?>
</td>
      </tr>
       <tr>
        <td>作者：<?php echo ((is_array($_tmp=$this->_tpl_vars['rs']['a1'])) ? $this->_run_mod_handler('cutstr', true, $_tmp, 13) : smarty_modifier_cutstr($_tmp, 13)); ?>
</td>
      </tr>
      <tr>
        <td>出版社：<?php echo ((is_array($_tmp=$this->_tpl_vars['rs']['a2'])) ? $this->_run_mod_handler('cutstr', true, $_tmp, 13) : smarty_modifier_cutstr($_tmp, 13)); ?>
</td>
      </tr>
      <tr>
        <td>价格：<span style="color:#C60"><?php echo ((is_array($_tmp=$this->_tpl_vars['rs']['price_m'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : number_format($_tmp, 2)); ?>
 </span>  Z币</td>
      </tr>
     
    </table></td>
    </tr>
</table></td>
              </tr>
          </table><?php else: ?><table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="89%" style=" padding-left:5px;"><img src="skins/stlye/images/0<?php echo $this->_tpl_vars['rs']['index']+1; ?>
.jpg" /><a href="book_show.php?id=<?php echo $this->_tpl_vars['rs']['id']; ?>
" target="_blank">&nbsp;<?php echo ((is_array($_tmp=$this->_tpl_vars['rs']['topicname'])) ? $this->_run_mod_handler('cutstr', true, $_tmp, 13) : smarty_modifier_cutstr($_tmp, 13)); ?>
</a></td>
  </tr>
</table><?php endif; ?><?php endforeach; endif; unset($_from); ?></td>
        </tr>
    </table></td>
      </tr>
      <tr>
      <td></td>
      </tr>
    </table></td>
    <td width="3"  align="left" valign="top" ></td>
    <td  align="left" valign="top" style="border:solid 1px #CCC;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
           <td background="skins/stlye/images/bdsjtp_03.jpg" height="27" style="font-size:14px; font-weight:bold; padding-left:10px;  ">所有资源</td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td colspan="5" height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="47%">&nbsp;&nbsp;&nbsp;&nbsp;共查询到<span style="color:#900"><?php echo $this->_tpl_vars['productcount']; ?>
</span>本书</td>
              <td width="53%" align="right" style="padding-right:10px"><?php echo $this->_tpl_vars['pagetext']; ?>
</td>
            </tr>
          </table></td>
          </tr>
          <tr>
            <td colspan="5"  valign="top"><?php if ($this->_tpl_vars['productcount'] != '0'): ?><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['proi2']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
          <?php if ($this->_sections['i']['rownum']%5 == 1): ?>
            <tr>
            <?php endif; ?>
              <td valign="middle"><table width="100" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <td width="21%" align="center" s="s"  style="padding-top:10px"><div style="border:0px solid #ccc"><a href="<?php echo ((is_array($_tmp='book_show')) ? $this->_run_mod_handler('urlpro', true, $_tmp, $this->_tpl_vars['proi2'][$this->_sections['i']['index']]['id'], $this->_tpl_vars['proi2'][$this->_sections['i']['index']]['rootid']) : smarty_modifier_urlpro($_tmp, $this->_tpl_vars['proi2'][$this->_sections['i']['index']]['id'], $this->_tpl_vars['proi2'][$this->_sections['i']['index']]['rootid'])); ?>
" target="_blank"><img src="<?php echo ((is_array($_tmp=$this->_tpl_vars['proi2'][$this->_sections['i']['index']]['pic'])) ? $this->_run_mod_handler('showpic', true, $_tmp) : smarty_modifier_showpic($_tmp)); ?>
" width="103" height="136" style=" border:solid 1px #CCC; padding:3px;" title='<?php echo $this->_tpl_vars['proi2'][$this->_sections['i']['index']]['topicname']; ?>
' /></a></div></td>
                </tr>
                <tr>
                  <td align="center"><a href="<?php echo ((is_array($_tmp='book_show')) ? $this->_run_mod_handler('urlpro', true, $_tmp, $this->_tpl_vars['proi2'][$this->_sections['i']['index']]['id'], $this->_tpl_vars['proi2'][$this->_sections['i']['index']]['rootid']) : smarty_modifier_urlpro($_tmp, $this->_tpl_vars['proi2'][$this->_sections['i']['index']]['id'], $this->_tpl_vars['proi2'][$this->_sections['i']['index']]['rootid'])); ?>
" target="_blank"><strong><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['proi2'][$this->_sections['i']['index']]['topicname'])) ? $this->_run_mod_handler('cutstr', true, $_tmp, 6) : smarty_modifier_cutstr($_tmp, 6)))) ? $this->_run_mod_handler('getcolorw', true, $_tmp, $this->_tpl_vars['proi2'][$this->_sections['i']['index']]['colorstr'], $this->_tpl_vars['proi2'][$this->_sections['i']['index']]['weightstr']) : smarty_modifier_getcolorw($_tmp, $this->_tpl_vars['proi2'][$this->_sections['i']['index']]['colorstr'], $this->_tpl_vars['proi2'][$this->_sections['i']['index']]['weightstr'])); ?>
</strong> </a></td>
                </tr>
                <tr>
                  <td align="center" height="5"><font color="reo" class="reo">价格：</font><?php echo ((is_array($_tmp=$this->_tpl_vars['proi2'][$this->_sections['i']['index']]['price_m'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 2) : number_format($_tmp, 2)); ?>
  &nbsp;Z币</td>
                </tr>
                <tr>
                  <td align="center" height="5">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td align="right" style="padding-right:2px"><a  href="javascript:;" onclick="addcart('<?php echo $this->_tpl_vars['proi2'][$this->_sections['i']['index']]['id']; ?>
','<?php echo $this->_tpl_vars['proi2'][$this->_sections['i']['index']]['codeid']; ?>
',1)"><img src="skins/stlye/images/sytsgc_03.jpg" /></a></td>
                        <td align="left" style="padding-left:2px"><a href="javascript:;" onclick="addshoucang('<?php echo $this->_tpl_vars['proi2'][$this->_sections['i']['index']]['id']; ?>
','<?php echo $this->_tpl_vars['proi2'][$this->_sections['i']['index']]['codeid']; ?>
')"><img src="skins/stlye/images/sytsgc_05.jpg" /></a></td>
                        </tr>
                    </table></td>
                </tr>
              </table></td>
                  <?php if ($this->_sections['i']['rownum']%5 == 0): ?>
            </tr>
            <?php endif; ?><?php endfor; endif; ?>
          </table><?php else: ?><div style="text-align:center; font-size:14px; font-weight:bold"><br />
      <br />
      <br />
      抱歉，没有找到相应商品!</div><?php endif; ?></td>
            </tr>
          <tr>
            <td colspan="5" height="10"></td>
          </tr>
          </table></td>
      </tr>
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
    <td width="84%" height="35" align="right" style="padding-right:10px"><?php echo $this->_tpl_vars['pagetext']; ?>
<br /></td>
      </tr>
    </table></td>
      </tr>
    </table></td>
  </tr>
</table>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "foot_inc.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 
</body>
</html>